import Vue from 'vue'
import App from './App.vue'
import './assets/style/global.css'
import './assets/style/reset.css'
import router from './router'
import store from './store'

Vue.config.productionTip = false

// 频道数据一开始就需要获取
store.dispatch('channels/fetchDatas')
// 登录信息一开始就需要获取
store.dispatch('loginUser/whoAmI')

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
